package com.example.xw.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@TableName("comments")
public class Comment {
    @TableId("cm_id")
    private Integer id;
    @TableField("cm_weiboid")
    private Integer weiboId;
    @TableField("cm_user_loginname")
    private String userLoginname;
    @TableField("cm_content")
    private String content;
    @TableField("cm_createtime")
    private Date createTime;
    @TableField("cm_state")
    private Integer state;

    @TableField(exist = false)
    private Map<String,Object> map = new HashMap<>();
    public Map<String, Object> getMap() {
        return map;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWeiboId() {
        return weiboId;
    }

    public void setWeiboId(Integer weiboId) {
        this.weiboId = weiboId;
    }

    public String getUserLoginname() {
        return userLoginname;
    }

    public void setUserLoginname(String userLoginname) {
        this.userLoginname = userLoginname;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
}
